//
//  TextFieldLineView.h
//  WuJieLive
//
//  Created by iMac on 2017/10/19.
//  Copyright © 2017年 zhk. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CodeLabel.h"

@protocol GetCodeDelegate <NSObject>

- (void)getCode:(NSString *)messageCode;

@end

@interface TextFieldLineView : UIView <UITextFieldDelegate>

/**背景图片*/

//@property (nonatomic,copy) NSString *backgroudImageName;

/**验证码/密码的位数*/

@property (nonatomic,assign) NSInteger numberOfVertificationCode;

/**控制验证码/密码是否密文显示*/

@property (nonatomic,assign) bool secureTextEntry;

/**验证码/密码内容，可以通过该属性拿到验证码/密码输入框中验证码/密码的内容*/

@property (nonatomic,copy) NSString *vertificationCode;

/**用于获取键盘输入的内容，实际不显示*/

@property (nonatomic,strong) UITextField *textField;

/**验证码/密码输入框的背景图片*/

//@property (nonatomic,strong) UIImageView *backgroundImageView;

/**实际用于显示验证码/密码的label*/

@property (nonatomic,strong) CodeLabel *label;


@property (nonatomic , weak) id<GetCodeDelegate> delegate;



-(void)becomeFirstResponder;

@end
